<template>
  <h2 v-style="{ color: 'red', background: 'cyan', textAlign: 'center' }">Hello World.</h2>
</template>

<script setup>
const vStyle = (el, binding) => {
  const obj = binding.value

  if (typeof obj === 'object') {
    for (let k in obj) {
      el.style[k] = obj[k]
    }
  }
}
</script>

<style scoped></style>
